package com.ruoyi.client.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 购物车 对象 sys_buy_car
 *
 * @author ruoyi
 * @date 2022-09-23
 */
public class SysBuyCar extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 购物车id
     */
    private Long carId;

    /**
     * 客户id
     */
    @Excel(name = "客户id")
    private Long userId;

    /**
     * 器械id
     */
    @Excel(name = "器械id")
    private Long medId;

    /**
     * 器械数量
     */
    @Excel(name = "器械数量")
    private Long medMunber;

    /** 商品数据*/
    private SysMedical sysMedical;

    public SysMedical getSysMedical() {
        return sysMedical;
    }

    public void setSysMedical(SysMedical sysMedical) {
        this.sysMedical = sysMedical;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Long getCarId() {
        return carId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setMedId(Long medId) {
        this.medId = medId;
    }

    public Long getMedId() {
        return medId;
    }

    public void setMedMunber(Long medMunber) {
        this.medMunber = medMunber;
    }

    public Long getMedMunber() {
        return medMunber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("carId", getCarId())
                .append("userId", getUserId())
                .append("medId", getMedId())
                .append("medMunber", getMedMunber())
                .append("sysMedical", getSysMedical())
                .toString();
    }
}
